{{!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--}}
<form class="form-horizontal">
	<fieldset>
                <p class="formHeader">Module Details:</p>
	<div class="clearfix"></div>
	<b class="policy-form">
		<fieldset>
			<div class="">
					<div class="" data-fields="module"></div>
			</div>
		</fieldset>
	</b>
	</fieldset>
	<fieldset>
		<p class="formHeader">User and Group Permissions:</p>
		<div class="row">
			<label class="col-sm-2 text-right" style="font-weight: normal;">{{tt 'lbl.permissions'}}</label>
			<div class="col-sm-10">
				<table class="table-permission table-condensed visible-border">
					<thead>
						<tr>
							{{#each permHeaders}}
                                                        <th width="49%">{{./this}}</th>
							{{/each}}
						</tr>
					</thead>
					<tbody class="js-formInput">
						<tr>
							<td>
                                                                <div data-editors="selectGroups" class="list-inline inline-block" style="vertical-align: middle;"></div>
                                                                <button data-id="addGroupBtn" class="fa fa-plus btn btn-default btn-sm" title="Add Group" style="padding: 6px 12px;"></button>
							</td>
							<td>
                                                                <div data-editors="selectUsers" class="list-inline inline-block" style="vertical-align: middle;"></div>
                                                                <button data-id="addUserBtn" class="fa fa-plus btn btn-default btn-sm" title="Add User" style="padding: 6px 12px;"></button>

							</td>
                                                        <!--<td>
                                                                 <div data-editors="isAllowed"></div>
                                                        </td>-->
                                                </tr>
                                                <tr>
                                                        <td  class="vertAlignInitial">
                                                                <div class="selected-list clearfix" data-js="selectedGroupList">
                                                                <label class="editable-empty emptySelectedGroups">No Selected Groups</label>
                                                                {{#each groupList}}
                                                                        <span class="selected-widget">
                                                                                <i class="icon remove fa-fw fa fa-remove" data-id="{{./this.groupId}}"></i>&nbsp;
                                                                                {{./this.groupName}}
                                                                        </span>
                                                                {{/each}}

                                                                </div></td>
                                                                <td class="vertAlignInitial" width="100%">
                                                                <div class="selected-list clearfix" data-js="selectedUserList">
                                                                        <label class="editable-empty emptySelectedUsers" style="text-align: center;">No Selected Users</label>

                                                                        {{#each userList}}
                                                                        <span class="selected-widget">
                                                                                <i class="icon remove fa-fw fa fa-remove" data-id="{{./this.userId}}"></i>&nbsp;
                                                                                {{./this.userName}}
                                                                        </span>
                                                                {{/each}}
                                                                </div></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		</fieldset>
</form>
